<template>
  <div>
    <h1 v-if="error.statusCode">{{error.message}}</h1>
    <h1 v-else>应用发送异常</h1>
    <a-button @click="$router.replace('/')">跳转到首页</a-button>
  </div>
</template>

<script>
export default {
  props: ['error']
}
</script>